home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / s3envar1.zip / ENVAR10.DOC < prev    next >
Text File  |  1994-01-17  |  3KB  |  78 lines

  1. Program:        S3 Environment Variable Lister (ENVAR)
  2. Version:        1.0
  3. Date:           01/17/94
  4. Author:         George Spafford
  5.  
  6. Purpose:        To aid in the debugging of applications that pass command
  7.                 arguments to spawned programs through the DOS %1 %2 %3 . . .
  8.                 enviornment variables.
  9.  
  10. Install:        Put ENVAR.EXE in a directory that is included in your PATH
  11.                 statement in the AUTOEXEC.BAT or put it in the directory
  12.                 where you want it.
  13.  
  14. Usage:          ENVAR %1 %2 %3 %4 %5 %6 %7 %8 %9
  15.  
  16.                 %1 .... These are DOS environment variables that pass command
  17.                         line arguments to a program.
  18.  
  19. Example:        Let's say you have a batch file called DSZUP.BAT and it
  20.                 contains:
  21.  
  22.                 DSZ port %2 speed %1 ha slow rz -mrr %3
  23.  
  24.                 If you want to find what information the DSZ program is
  25.                 receiving, you could edit the batch file (or temporarily
  26.                 replace it) to read:
  27.  
  28.                 REM DSZ port %2 speed %1 ha slow rz -mrr %3
  29.                 ENVAR %1 %2 %3
  30.  
  31. !!! IMPORANT NOTE !!!
  32.  
  33.                 Note something very important.  Variable numbers are relative
  34.                 to ENVAR!!!!  In other words, the order you put the % numbers
  35.                 on the ENVAR command line will reflect the order in which ENVAR
  36.                 identifies them.  If %2 is first, then ENVAR will identify it
  37.                 as %1 and so on.  Here are some examples:
  38.  
  39.                         ENVAR %3 %4 %1          3 is 1, 4 is 2 and 1 is 3
  40.                         ENVAR %1 %2 %4          1 is 1, 2 is 2 and 4 is 3
  41.                         ENVAR %3 %2 %1          3 is 1, 2 is 2 and 2 is 1
  42.                         ENVAR %4 %1 %5          4 is 1, 1 is 2 and 5 is 3
  43.  
  44. Please Register:
  45.  
  46. S3 ENVAR is distributed as shareware.  It is not public domain.  If
  47. you find that it is a useful utility, please register it for $10 per copy.
  48. Please make payment in U.S. funds (Please do not send cash) to:
  49.  
  50.                 George Spafford
  51.                 3003 LakeShore Drive, #216
  52.                 St. Joseph, MI 49085
  53.         
  54.     I can also be contacted via E-Mail on EXEC-PC and Channel-1.
  55.  
  56. THE S3 ENVAR PACKAGE IS DISTRIBUTED AS IS.  THE AUTHOR (GEORGE SPAFFORD)
  57. MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT
  58. NOT LIMITED TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
  59. PURPOSE, WITH RESPECT TO THIS SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL
  60. THE AUTHOR BE LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST SAVINGS,
  61. OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  62. OUT OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
  63.  
  64. DSZ is the copyright of Omen Technologies.
  65. -----------------------------------------------------------------------
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.